<?php

class Config_Dataset {
	private $data;

	public function __construct($data = array()) {
		$this->data = $data;
	}

	public function get($key, $default = null) {
		if(!$this->contains($key)) {
			return $default;
		}
		return $this->data[$key];
	}

	public function contains($key) {
		return array_key_exists($key, $this->data);
	}

	public function getString($key, $default = null) {
		return $this->get($key, $default);
	}

	public function getDataset($key, $default = array()) {
		return new Config_Dataset($this->get($key, $default));
	}
}

?>
